package cn.com.shadowless.xinning.utils;

/**
 * The type Constants.
 *
 * @author sHadowLess
 */
public class Constants {
    /**
     * The constant BASE_URL.
     */
    public static final String BASE_URL = "http://xinningoa.jiayipu.com:8707/";

    /**
     * The constant ERROR_TIME_OUT_MESSAGE.
     */
    public static final String ERROR_TIME_OUT_MESSAGE = "请求数据超时，请重试";

    /**
     * The constant ERROR_CONNECT_REFUSED_MESSAGE.
     */
    public static final String ERROR_CONNECT_REFUSED_MESSAGE = "无法连接服务器，请检测网络或联系管理员";
    /**
     * The constant ERROR_SOCKET_CLOSED_MESSAGE.
     */
    public static final String ERROR_SOCKET_CLOSED_MESSAGE = "网络故障，无法与服务器通讯";
    /**
     * The constant ERROR_WAVE_MESSAGE.
     */
    public static final String ERROR_WAVE_MESSAGE = "网络波动，清重试";
    /**
     * The constant ERROR_UN_KNOW_HOST_MESSAGE.
     */
    public static final String ERROR_UN_KNOW_HOST_MESSAGE = "无法解析域名，请检查网络或联系管理员";
    /**
     * The constant ERROR_DEFAULT.
     */
    public static final String ERROR_DEFAULT = "请求失败，请重试";

    /**
     * The enum Error.
     */
    public enum ERROR {
        /**
         * Timeout error.
         */
        TIMEOUT,
        /**
         * Connect refused error.
         */
        CONNECT_REFUSED,
        /**
         * Socket closed error.
         */
        SOCKET_CLOSED,
        /**
         * Wave error.
         */
        WAVE,
        /**
         * Un know host error.
         */
        UN_KNOW_HOST,
        /**
         * Default error.
         */
        DEFAULT
    }
}
